home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / shistory / nsISHTransaction.h < prev   
C/C++ Source or Header  |  2006-05-08  |  7KB  |  202 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISHTransaction.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISHTransaction_h__
  6. #define __gen_nsISHTransaction_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsISHEntry_h__
  14. #include "nsISHEntry.h"
  15. #endif
  16.  
  17. #ifndef __gen_nsIEnumerator_h__
  18. #include "nsIEnumerator.h"
  19. #endif
  20.  
  21. /* For IDL files that don't want to include root IDL files. */
  22. #ifndef NS_NO_VTABLE
  23. #define NS_NO_VTABLE
  24. #endif
  25.  
  26. /* starting interface:    nsISHTransaction */
  27. #define NS_ISHTRANSACTION_IID_STR "2edf705f-d252-4971-9f09-71dd0f760dc6"
  28.  
  29. #define NS_ISHTRANSACTION_IID \
  30.   {0x2edf705f, 0xd252, 0x4971, \
  31.     { 0x9f, 0x09, 0x71, 0xdd, 0x0f, 0x76, 0x0d, 0xc6 }}
  32.  
  33. /**
  34.  * The nsISHTransaction.
  35.  */
  36. class NS_NO_VTABLE nsISHTransaction : public nsISupports {
  37.  public: 
  38.  
  39.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISHTRANSACTION_IID)
  40.  
  41.   /**
  42.      * The nsISHEntry for the current transaction
  43.      */
  44.   /* attribute nsISHEntry sHEntry; */
  45.   NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry) = 0;
  46.   NS_IMETHOD SetSHEntry(nsISHEntry * aSHEntry) = 0;
  47.  
  48.   /**
  49.      * The parent of this transaction
  50.      */
  51.   /* attribute nsISHTransaction prev; */
  52.   NS_IMETHOD GetPrev(nsISHTransaction * *aPrev) = 0;
  53.   NS_IMETHOD SetPrev(nsISHTransaction * aPrev) = 0;
  54.  
  55.   /**
  56.      * The legitimate child of this transaction 
  57.      */
  58.   /* attribute nsISHTransaction next; */
  59.   NS_IMETHOD GetNext(nsISHTransaction * *aNext) = 0;
  60.   NS_IMETHOD SetNext(nsISHTransaction * aNext) = 0;
  61.  
  62.   /**
  63.      *    Specifies if this transaction should persist.  If not it will be replaced
  64.      * by new additions to the list.
  65.      */
  66.   /* attribute boolean persist; */
  67.   NS_IMETHOD GetPersist(PRBool *aPersist) = 0;
  68.   NS_IMETHOD SetPersist(PRBool aPersist) = 0;
  69.  
  70.   /**
  71.      * Create a transaction with parent and History Entry 
  72.      */
  73.   /* void create (in nsISHEntry aSHEntry, in nsISHTransaction aPrev); */
  74.   NS_IMETHOD Create(nsISHEntry *aSHEntry, nsISHTransaction *aPrev) = 0;
  75.  
  76. };
  77.  
  78. /* Use this macro when declaring classes that implement this interface. */
  79. #define NS_DECL_NSISHTRANSACTION \
  80.   NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry); \
  81.   NS_IMETHOD SetSHEntry(nsISHEntry * aSHEntry); \
  82.   NS_IMETHOD GetPrev(nsISHTransaction * *aPrev); \
  83.   NS_IMETHOD SetPrev(nsISHTransaction * aPrev); \
  84.   NS_IMETHOD GetNext(nsISHTransaction * *aNext); \
  85.   NS_IMETHOD SetNext(nsISHTransaction * aNext); \
  86.   NS_IMETHOD GetPersist(PRBool *aPersist); \
  87.   NS_IMETHOD SetPersist(PRBool aPersist); \
  88.   NS_IMETHOD Create(nsISHEntry *aSHEntry, nsISHTransaction *aPrev); 
  89.  
  90. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  91. #define NS_FORWARD_NSISHTRANSACTION(_to) \
  92.   NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry) { return _to GetSHEntry(aSHEntry); } \
  93.   NS_IMETHOD SetSHEntry(nsISHEntry * aSHEntry) { return _to SetSHEntry(aSHEntry); } \
  94.   NS_IMETHOD GetPrev(nsISHTransaction * *aPrev) { return _to GetPrev(aPrev); } \
  95.   NS_IMETHOD SetPrev(nsISHTransaction * aPrev) { return _to SetPrev(aPrev); } \
  96.   NS_IMETHOD GetNext(nsISHTransaction * *aNext) { return _to GetNext(aNext); } \
  97.   NS_IMETHOD SetNext(nsISHTransaction * aNext) { return _to SetNext(aNext); } \
  98.   NS_IMETHOD GetPersist(PRBool *aPersist) { return _to GetPersist(aPersist); } \
  99.   NS_IMETHOD SetPersist(PRBool aPersist) { return _to SetPersist(aPersist); } \
  100.   NS_IMETHOD Create(nsISHEntry *aSHEntry, nsISHTransaction *aPrev) { return _to Create(aSHEntry, aPrev); } 
  101.  
  102. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  103. #define NS_FORWARD_SAFE_NSISHTRANSACTION(_to) \
  104.   NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSHEntry(aSHEntry); } \
  105.   NS_IMETHOD SetSHEntry(nsISHEntry * aSHEntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSHEntry(aSHEntry); } \
  106.   NS_IMETHOD GetPrev(nsISHTransaction * *aPrev) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrev(aPrev); } \
  107.   NS_IMETHOD SetPrev(nsISHTransaction * aPrev) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrev(aPrev); } \
  108.   NS_IMETHOD GetNext(nsISHTransaction * *aNext) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNext(aNext); } \
  109.   NS_IMETHOD SetNext(nsISHTransaction * aNext) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNext(aNext); } \
  110.   NS_IMETHOD GetPersist(PRBool *aPersist) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPersist(aPersist); } \
  111.   NS_IMETHOD SetPersist(PRBool aPersist) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPersist(aPersist); } \
  112.   NS_IMETHOD Create(nsISHEntry *aSHEntry, nsISHTransaction *aPrev) { return !_to ? NS_ERROR_NULL_POINTER : _to->Create(aSHEntry, aPrev); } 
  113.  
  114. #if 0
  115. /* Use the code below as a template for the implementation class for this interface. */
  116.  
  117. /* Header file */
  118. class nsSHTransaction : public nsISHTransaction
  119. {
  120. public:
  121.   NS_DECL_ISUPPORTS
  122.   NS_DECL_NSISHTRANSACTION
  123.  
  124.   nsSHTransaction();
  125.  
  126. private:
  127.   ~nsSHTransaction();
  128.  
  129. protected:
  130.   /* additional members */
  131. };
  132.  
  133. /* Implementation file */
  134. NS_IMPL_ISUPPORTS1(nsSHTransaction, nsISHTransaction)
  135.  
  136. nsSHTransaction::nsSHTransaction()
  137. {
  138.   /* member initializers and constructor code */
  139. }
  140.  
  141. nsSHTransaction::~nsSHTransaction()
  142. {
  143.   /* destructor code */
  144. }
  145.  
  146. /* attribute nsISHEntry sHEntry; */
  147. NS_IMETHODIMP nsSHTransaction::GetSHEntry(nsISHEntry * *aSHEntry)
  148. {
  149.     return NS_ERROR_NOT_IMPLEMENTED;
  150. }
  151. NS_IMETHODIMP nsSHTransaction::SetSHEntry(nsISHEntry * aSHEntry)
  152. {
  153.     return NS_ERROR_NOT_IMPLEMENTED;
  154. }
  155.  
  156. /* attribute nsISHTransaction prev; */
  157. NS_IMETHODIMP nsSHTransaction::GetPrev(nsISHTransaction * *aPrev)
  158. {
  159.     return NS_ERROR_NOT_IMPLEMENTED;
  160. }
  161. NS_IMETHODIMP nsSHTransaction::SetPrev(nsISHTransaction * aPrev)
  162. {
  163.     return NS_ERROR_NOT_IMPLEMENTED;
  164. }
  165.  
  166. /* attribute nsISHTransaction next; */
  167. NS_IMETHODIMP nsSHTransaction::GetNext(nsISHTransaction * *aNext)
  168. {
  169.     return NS_ERROR_NOT_IMPLEMENTED;
  170. }
  171. NS_IMETHODIMP nsSHTransaction::SetNext(nsISHTransaction * aNext)
  172. {
  173.     return NS_ERROR_NOT_IMPLEMENTED;
  174. }
  175.  
  176. /* attribute boolean persist; */
  177. NS_IMETHODIMP nsSHTransaction::GetPersist(PRBool *aPersist)
  178. {
  179.     return NS_ERROR_NOT_IMPLEMENTED;
  180. }
  181. NS_IMETHODIMP nsSHTransaction::SetPersist(PRBool aPersist)
  182. {
  183.     return NS_ERROR_NOT_IMPLEMENTED;
  184. }
  185.  
  186. /* void create (in nsISHEntry aSHEntry, in nsISHTransaction aPrev); */
  187. NS_IMETHODIMP nsSHTransaction::Create(nsISHEntry *aSHEntry, nsISHTransaction *aPrev)
  188. {
  189.     return NS_ERROR_NOT_IMPLEMENTED;
  190. }
  191.  
  192. /* End of implementation class template. */
  193. #endif
  194.  
  195. // {BFD1A792-AD9F-11d3-BDC7-0050040A9B44}
  196. #define NS_SHTRANSACTION_CID \
  197. {0xbfd1a792, 0xad9f, 0x11d3, {0xbd, 0xc7, 0x0, 0x50, 0x4, 0xa, 0x9b, 0x44}}
  198. #define NS_SHTRANSACTION_CONTRACTID \
  199.     "@mozilla.org/browser/session-history-transaction;1"
  200.  
  201. #endif /* __gen_nsISHTransaction_h__ */
  202.